package sf.model.fields;

import java.text.DecimalFormat;
import java.util.Locale;

import javax.swing.JFormattedTextField;

@Deprecated
public class DecimalField extends JFormattedTextField implements Field {

	private static final long serialVersionUID = 1L;

	public DecimalField(String name, int columns) {
		super(DecimalFormat.getNumberInstance(Locale.US)); // ?????!?!?!?!?!???!!!???
		setName(name);
		setColumns(columns);
	}

	public void clear() {
		setValue(null);
	}
}
